package org.lex.game.sudoku.view.cell;

import java.util.Comparator;

public enum CellStyle {
	NORMAL(10), EDITABLE(20), SELECTED(30), HINTS(40), ERROR(50), HIGHLIGHT(60);

	public static final Comparator<CellStyle> comparator = new Comparator<CellStyle>() {
		@Override
		public int compare(CellStyle o1, CellStyle o2) {
			return o1.priority - o2.priority;
		}
	};

	public int getPriority() {
		return priority;
	}

	private final int priority;

	private CellStyle(int priority) {
		this.priority = priority;
	}

}
